package net.wendal.nutzbook;

import org.nutz.integration.shiro.ShiroSessionProvider;
import org.nutz.mvc.annotation.ChainBy;
import org.nutz.mvc.annotation.Fail;
import org.nutz.mvc.annotation.IocBy;
import org.nutz.mvc.annotation.Localization;
import org.nutz.mvc.annotation.Modules;
import org.nutz.mvc.annotation.Ok;
import org.nutz.mvc.annotation.SessionBy;
import org.nutz.mvc.annotation.SetupBy;
import org.nutz.mvc.ioc.provider.ComboIocProvider;

@SessionBy(ShiroSessionProvider.class) // 含义是,使用Shiro的Session替换NutFilter作用域内的Session
@ChainBy(args = "mvc/nutzbook-mvc-chain.js")
@Localization(value = "msg/", defaultLocalizationKey = "zh-CN")
@Fail("jsp:jsp.500")
@Ok("json:full")
@SetupBy(value = MainSetup.class)
// 请注意星号!!不要拷贝少了
@IocBy(type = ComboIocProvider.class, args = { "*js", "ioc/", "*anno", "net.wendal.nutzbook", "*tx",
		"*org.nutz.integration.quartz.QuartzIocLoader" })
@Modules(scanPackage = true)
public class MainModule {

}
